package cn.stylefeng.guns.modular.gridsystem.config;


import cn.stylefeng.guns.modular.gridsystem.mqtt.MyMqttClient;
import io.netty.handler.codec.mqtt.MqttProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author ssy
 * @date 2023/3/8 11:38
 */
@Configuration
public class MqttClientConfiguration {
/*

    @Resource
    private MqttProperties mqttProperties;

    @Bean
    MyMqttClient mqttClient() {
        return new MyMqttClient(mqttProperties.getClientId(),
                mqttProperties.getUserName(),
                mqttProperties.getPassword(),
                mqttProperties.getBrokerUrl(),
                mqttProperties.getTimeOut(),
                mqttProperties.getAliveTime(),
                mqttProperties.getTopics(),
                mqttProperties.getQos(),
                mqttProperties.getMaxConnectTimes());
    }
*/

}
